package org.zcl.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;
import org.zcl.entity.User;
import org.zcl.service.FeignService;

/**
 * .
 *
 * @author zhuchenglin
 * @since 2024/7/8 18:36
 */
@RestController
public class FeginController {

    @Autowired
    private FeignService feignService;

    @GetMapping("/api/getUserById/{id}")
    public User getById(@PathVariable(value = "id")Long id) {
        User user = feignService.getById(id);
        System.out.println(user);
        return null;
    }
}
